package com.clj.cloud.common.core.exception;


import lombok.Getter;

@Getter
public class BaseException extends RuntimeException{
	/**
     * 异常对应的错误类型
     */
    private final ErrorType errorType;
    
    
    public BaseException(){
    	this.errorType = SystemErrorType.SYSTEM_ERROR;
    }
    
    
    public BaseException(ErrorType errorType) {
        this.errorType = errorType;
    }

    public BaseException(ErrorType errorType, String message) {
        super(message);
        this.errorType = errorType;
    }

    public BaseException(ErrorType errorType, String message, Throwable cause) {
        super(message, cause);
        this.errorType = errorType;
    }
}
